﻿@model RehabilitationMvc.Models.Review

@{
    ViewBag.Title = "Create";
}

<script src="~/Scripts/fix/jquery.validate.fix.js" type="text/javascript"></script>

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Review</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Text)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Text)
            @Html.ValidationMessageFor(model => model.Text)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AuthorName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AuthorName)
            @Html.ValidationMessageFor(model => model.AuthorName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AuthorAge)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AuthorAge)
            @Html.ValidationMessageFor(model => model.AuthorAge)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AuthorCity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AuthorCity)
            @Html.ValidationMessageFor(model => model.AuthorCity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Created)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Created)
            @Html.ValidationMessageFor(model => model.Created)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
